global !p
def triple_quotes(snip):
	return ""

endglobal

# snippet ifmainvisual "ifmain" b
# if __name__ == 'main':
#   ${1:${VISUAL:main()}}
#   ${2:${VISUAL}}
# endsnippet

snippet class "class with docstrings" b
class ${1:MyClass}(${2:object}):

  `!p snip.rv = triple_quotes(snip)`${3:Docstring for $1. }`!p snip.rv = triple_quotes(snip)`

  def __init__(self$4):
    `!p snip.rv = triple_quotes(snip)`${5:TODO: to be defined.}`!p
snip.rv = "good"
snip >> 2

snip.rv += '\n' + snip.mkline('', indent='')
snip += '{0}'.format(triple_quotes(snip))

`
    $0
endsnippet

snippet cwfn "console with current filename"
console.log('[${1:`!v expand('%:r')`}]', $2)
endsnippet

